<template>
	<el-dialog title="" visible :show-close="false" :append-to-body="true" class="wrap" width="80%">
		<div class="bt">{{this.form.zwm}}-学生资料</div>
		<i class="el-icon-close close" @click="cancel" style="color: white;z-index:10;"></i>
		<el-form label-width="100px" class="form">
			<el-tabs v-model="activeName" @tab-click="handleClick" style="text-align: center;">
				<el-tab-pane label="基本信息" name="first" style="width: 100%;">
					<table style="margin: 0 auto;width: 100%;">
						<tr>
							<td>
								<el-form-item label="中文名称">
									<el-input v-model="form.zwm" class="select-block"></el-input>
								</el-form-item>
							</td>
							<td>
								<el-form-item label="英文名称">
									<el-input v-model="form.ywm" class="select-block"></el-input>
								</el-form-item>
							</td>
						</tr>
						<tr>
							<td>
								<el-form-item label="学生性别" class="select-block">
									<el-select v-model="form.xb" placeholder="请选择性别" icon="add" class="select-block">
										<el-option label="男" value="男"></el-option>
										<el-option label="女" value="女"></el-option>
									</el-select>
								</el-form-item>
							</td>
							<td>
								<el-form-item label="学生电话">
									<input v-model="form.dh" type="number" @blur='yz' class="input1" style="width: 80%;text-align: left;">
									<el-button type="" size="small" style="width: 18%;" @click="czmm()">重置密码</el-button>
								</el-form-item>
							</td>
						</tr>

						<tr>
							<td>
								<el-form-item label="出生日期" class="select-block">
									<el-date-picker v-model="form.csrq" style='width: 100%;' :editable="false" :picker-options="pickerOptions0" type="date" placeholder="请选择出生日期"></el-date-picker>
								</el-form-item>
							</td>
							<td>
								<el-form-item label="招生来源">
									<el-input v-model="form.zsly" class="select-block"></el-input>
								</el-form-item>
							</td>
						</tr>
						<tr>
							<td>
								<el-form-item label="父母电话">
									<input v-model="form.fmdh" type="number" @blur='yz1' class="input1" style="width: 100%;text-align: left;">
								</el-form-item>
							</td>
							<td>
								<el-form-item label="微信号码">
									<el-input v-model="form.wx" class="select-blocks"></el-input>
								</el-form-item>
							</td>
						</tr>

						<tr>
							<td>
								<el-form-item label="家庭地址">
									<el-input v-model="form.jtdz" class="select-block"></el-input>
								</el-form-item>
							</td>
							<td>
								<el-form-item label="公立学校">
									<el-input v-model="form.glxx" class="select-block"></el-input>
								</el-form-item>
							</td>
						</tr>

						<tr>
							<td>
								<el-form-item label="年级班级" class="select-block">
									<el-select v-model="form.njbj" class="select-block">
										<el-option :label="v.njmc" :value="v.id+''" v-for="v in comboxlist"></el-option>
									</el-select>

								</el-form-item>
							</td>
							<td>
								<el-form-item label="预存金额">
									<el-input v-model="form.ycje" :readonly="true" class="select-block"></el-input>
								</el-form-item>
							</td>
						</tr>
						</tr>

						<tr>
							<td>
								<el-form-item label="剩余课时">
									<el-input v-model="form.syks" :readonly="true" class="select-block"></el-input>
								</el-form-item>
							</td>
						</tr>
					</table>

					<el-form-item label="学生标签">
						<el-tag type="success" class="list1" v-for="(i,index) in bqList">
							{{i}}
							<i class="el-icon-close del1" @click="delbq(i)"></i>
						</el-tag>
						<el-button type="" size="small" class="submit" @click="componentsShow('bq')">+标签</el-button>
					</el-form-item>
				</el-tab-pane>

				<el-tab-pane label="学生考勤" name="second">
					<el-table :data="kqdataList" stripe style="width: 100%" :cell-style="styletest">
						<!--<el-table-column prop="bjmc" label="班级名称"></el-table-column>-->
						<el-table-column prop="sc" label="课程时长"></el-table-column>
						
						<el-table-column prop="day" label="day"></el-table-column>

						<el-table-column prop="zt" label="考勤状态"></el-table-column>

						<el-table-column prop="sj" label="考勤时间"></el-table-column>

						<el-table-column prop="lsmc" label="考勤老师"></el-table-column>
						
						<el-table-column prop="kxje" label="课消金额"></el-table-column>
						<br />

						<!--<el-table-column prop="note" label="状态"></el-table-column>-->
					</el-table>
					<!-- 分页查询区域 -->
					<el-pagination @size-change="handleSizeChange1" @current-change="handleCurrentChange1" :current-page.sync="pageindex1" :page-sizes="pagesizes1" :page-size="pagesize1" :layout="layout" :total="total1" class="class-page">
					</el-pagination>
				</el-tab-pane>

				<el-tab-pane label="考试作业成绩" name="third">
					<el-table :data="kscjdataList" stripe style="width: 100%">
						<el-table-column prop="kslx" label="考试类型"></el-table-column>
						<el-table-column prop="score" label="分数"></el-table-column>
						<el-table-column prop="crtime" label="最近修改时间"></el-table-column>
					</el-table>
					<!-- 分页查询区域 -->
					<el-pagination @size-change="handleSizeChange2" @current-change="handleCurrentChange2" :current-page.sync="pageindex2" :page-sizes="pagesizes2" :page-size="pagesize2" :layout="layout" :total="total2" class="class-page">
					</el-pagination>
				</el-tab-pane>

				<el-tab-pane label="作业分数" v-if="false" name="fourth">
					<el-table :data="zydataList" stripe style="width: 100%">
						<el-table-column prop="zylx" label="作业类型"></el-table-column>
						<el-table-column prop="score" label="分数"></el-table-column>
						<el-table-column prop="crtime" label="作业录入日期"></el-table-column>
					</el-table>
					<!-- 分页查询区域 -->
					<el-pagination @size-change="handleSizeChange3" @current-change="handleCurrentChange3" :current-page.sync="pageindex3" :page-sizes="pagesizes3" :page-size="pagesize3" :layout="layout" :total="total3" class="class-page">
					</el-pagination>
				</el-tab-pane>

				<el-tab-pane label="学生评价" name="fiveth">
					<div class="all" :data="xspjdataList" v-for='v in xspjdataList' style="width: 50%;float: left;border: 1px solid #CCCCCC;">
						<div class="left">
							<div class="aa">
								<span>上课星数：</span>
								<input v-model="v.skxs" :readonly="true" icon="info" class="select-block1"></input>
							</div>
							<div class="aa">
								<span>作业星数：</span>
								<input v-model="v.zyxs" :readonly="true" icon="info" class="select-block1"></input>
							</div>
							<div class="aa">
								<span>背书星数：</span>
								<input v-model="v.bsxs" :readonly="true" icon="info" class="select-block1"></input>
							</div>
						</div>

						<div class="right">
							<div class="aa">
								<span>上课情况：</span>
								<input v-model="v.skstr" :readonly="true" icon="info" class="select-block1"></input>
							</div>
							<div class="aa">
								<span>作业情况：</span>
								<input v-model="v.zystr" :readonly="true" icon="info" class="select-block1"></input>
							</div>
							<div class="aa">
								<span>背书情况：</span>
								<input v-model="v.bsstr" :readonly="true" icon="info" class="select-block1"></input>
							</div>
						</div>
						<div class="jq" style="float: left;width: 100%;	margin-bottom: 15px;">
							<span>需要加强：</span>
							<input v-model="v.jqms" :readonly="true" icon="info" class="select-block1"></input>
						</div>
						<div class="jq" style="float: left;width: 100%;	margin-bottom: 15px;">
							<span>留言：</span>
							<el-input v-model="v.jqnotes" type="textarea" :rows="4" placeholder="请输入" class="select-block2"></el-input>
						</div>
						</el-form-item>
						<!--<el-table :data="xspjdataList" stripe style="width: 100%">
					<el-table-column prop="pjlx" label="评价类型"></el-table-column>
					<el-table-column prop="pjms" label="评价描述"></el-table-column>
					<el-table-column prop="sj" label="评价时间"></el-table-column>
					<el-table-column prop="jqms" label="加强描述"></el-table-column>
					<el-table-column prop="jqnotes" label="加强文字描述部分"></el-table-column>
				  </el-table>-->

						<!-- 分页查询区域 -->
					</div>
					<div class="fy" style="width: 100%;float: left;">
						<el-pagination @size-change="handleSizeChange4" @current-change="handleCurrentChange4" :current-page.sync="pageindex4" :page-sizes="pagesizes4" :page-size="pagesize4" :layout="layout" :total="total4" class="class-page">
						</el-pagination>
					</div>
				</el-tab-pane>

				<el-tab-pane label="公立校成绩" name="sixth">
					<el-button size="small" type="primary" style="float: left;" @click="componentsShow('glxcj')">添加</el-button>

					<el-table :data="xwcjdataList" stripe style="width: 100%">

						<el-table-column prop="lx" label="成绩类型"></el-table-column>
						<el-table-column prop="cj" label="成绩"></el-table-column>
						<el-table-column prop="sj" label="时间"></el-table-column>
						<el-table-column prop="pm" label="排名"></el-table-column>
						<el-table-column prop="fj1" label="附件1"></el-table-column>
						<el-table-column fixed="right" align="center" label="操作" width="140px">
							<template scope="scope">
								<!-- <el-button size="small" type="primary" v-if="scope.row.zt=='未安排补课'"  @click="componentsShow('bkap',scope)">补课</el-button> -->

								<el-button size="small" type="primary" @click="componentsShow('xwcjedit',scope)">修改</el-button>
							</template>
						</el-table-column>
					</el-table>
					<!-- 分页查询区域 -->
					<el-pagination @size-change="handleSizeChange5" @current-change="handleCurrentChange5" :current-page.sync="pageindex5" :page-sizes="pagesizes5" :page-size="pagesize5" :layout="layout" :total="total5" class="class-page">
					</el-pagination>
				</el-tab-pane>

				<el-tab-pane label="订单信息" name="seventh">
					<el-table :data="dxdataList" stripe style="width: 100%">
						<el-table-column prop="sj" label="购买日期"></el-table-column>
						<el-table-column prop="mc" label="名称"></el-table-column>
						<el-table-column prop="yjje" label="订单金额"></el-table-column>
						<el-table-column prop="qf" label="欠费"></el-table-column>
						<el-table-column prop="zt" label="状态"></el-table-column>
						<el-table-column fixed="right" align="center" label="操作" width="140px">
							<template scope="scope">
								<!--<router-link  :to="{path:'/cost/payjl',query: {iid:form.xsid1,orderid:form.orderid,frompage:'zdxq'}}">-->
								<el-button size="small" @click="componentsShow('info',scope)" type="primary">账单详情</el-button>
								<!--</router-link>-->
							</template>
						</el-table-column>
					</el-table>
					<!-- 分页查询区域 -->
					<el-pagination @size-change="handleSizeChange6" @current-change="handleCurrentChange6" :current-page.sync="pageindex6" :page-sizes="pagesizes6" :page-size="pagesize6" :layout="layout" :total="total6" class="class-page">
					</el-pagination>
				</el-tab-pane>

				<el-tab-pane label="账户信息" v-if="false" name="eightth">
					<el-table :data="zhxxdataList" stripe style="width: 100%">
						<el-table-column prop="xsmc" label="学生名称"></el-table-column>
						<el-table-column prop="kcmc" label="课程"></el-table-column>
						<el-table-column prop="wsks" label="未上课时"></el-table-column>
						<el-table-column prop="ysks" label="课销"></el-table-column>
						<el-table-column prop="ktje" label="可退金额"></el-table-column>
					</el-table>
					<!-- 分页查询区域 -->
					<el-pagination @size-change="handleSizeChange7" @current-change="handleCurrentChange7" :current-page.sync="pageindex7" :page-sizes="pagesizes7" :page-size="pagesize7" :layout="layout" :total="total7" class="class-page">
					</el-pagination>
				</el-tab-pane>

				<el-tab-pane label="学生消息" name="nineth">
					<el-table :data="xsxxdataList" stripe style="width: 100%">
						<el-table-column prop="bt" label="主题" width="120"></el-table-column>
						<el-table-column prop="nr" label="内容" width=""></el-table-column>
						<el-table-column prop="dt" label="发送时间" width="150"></el-table-column>
						<el-table-column prop="isreadmc" label="是否已读" width="80"></el-table-column>
					</el-table>
					<!-- 分页查询区域 -->
					<el-pagination @size-change="handleSizeChange8" @current-change="handleCurrentChange8" :current-page.sync="pageindex8" :page-sizes="pagesizes8" :page-size="pagesize8" :layout="layout" :total="total8" class="class-page">
					</el-pagination>
				</el-tab-pane>

				<el-tab-pane label="结转记录 " v-if="false" name="tenth">
					<el-table :data="jzjldataList" stripe style="width: 100%;">
						<el-table-column prop="kcmc" label="结转课程" width="80"></el-table-column>
						<el-table-column prop="tfje" label="结转金额" width="80"></el-table-column>
						<el-table-column prop="shsj" label="审核时间" width="200"></el-table-column>
						<el-table-column prop="issh" label="是否审核" width="80"></el-table-column>
						<el-table-column prop="tfyy" label="结转原因" width=""></el-table-column>

					</el-table>
					<!-- 分页查询区域 -->
					<el-pagination @size-change="handleSizeChange9" @current-change="handleCurrentChange9" :current-page.sync="pageindex9" :page-sizes="pagesizes9" :page-size="pagesize9" :layout="layout" :total="total9" class="class-page">
					</el-pagination>
				</el-tab-pane>

				<!--<el-tab-pane label="费用变更记录" name="eleventh">
					<el-table :data="tfjldataList" stripe style="width: 100%">
						<el-table-column prop="tfje" label="退费金额" width=""></el-table-column>
					<el-table-column prop="tfyy" label="退费原因" width=""></el-table-column>
					<el-table-column prop="tfsj" label="审核时间" width=""></el-table-column>
					<el-table-column prop="issh" label="是否审核" width=""></el-table-column>
						<el-table-column prop="lxmc" label="类型名称" width=""></el-table-column>
						<el-table-column prop="jsrmc" label="经手人名称" width=""></el-table-column>
						<el-table-column prop="sj" label="时间" width=""></el-table-column>
						<el-table-column prop="yhj" label="优惠卷" width=""></el-table-column>
						<el-table-column prop="je" label="金额" width=""></el-table-column>
					</el-table>
					<el-pagination @size-change="handleSizeChange10" @current-change="handleCurrentChange10" :current-page.sync="pageindex10" :page-sizes="pagesizes10" :page-size="pagesize10" :layout="layout" :total="total10" class="class-page">
					</el-pagination>
				</el-tab-pane>-->
				
				<!--<el-tab-pane label="学生课消记录" name="ninth">
					<el-table :data="xskxdataList" stripe style="width: 100%">
						<el-table-column prop="kcmc" label="课程名称" width=""></el-table-column>
						<el-table-column prop="kxcs" label="课消次数" width=""></el-table-column>
						<el-table-column prop="lxmc" label="类型名称" width=""></el-table-column>
						<el-table-column prop="sj"   label="课消时间" width=""></el-table-column>
					</el-table>
					<el-pagination @size-change="handleSizeChange11" @current-change="handleCurrentChange11" :current-page.sync="pageindex11" :page-sizes="pagesizes11" :page-size="pagesize11" :layout="layout" :total="total11" class="class-page">
					</el-pagination>
				</el-tab-pane>-->

			</el-tabs>
		</el-form>
		<GlxcjComponent v-if="portComponents.glxcj.toggle" @close="componentsHide" :params="this.form"></GlxcjComponent>
		<InfoComponent v-if="portComponents.info.toggle" @close="componentsHide" :params="portComponents.info.params"></InfoComponent>
		<BqComponent v-if="portComponents.bq.toggle" @close="componentsHide" :params="portComponents.bq.params"></BqComponent>
		<XwcjaddComponent v-if="portComponents.xwcjadd.toggle" @close="componentsHide" :params="portComponents.xwcjadd.params"></XwcjaddComponent>
		<XwcjeditComponent v-if="portComponents.xwcjedit.toggle" @close="componentsHide" :params="portComponents.xwcjedit.params"></XwcjeditComponent>
		<!--<el-pagination v-if="ishowpagination"
            @size-change="handleSizeChange"
            @current-change="handleCurrentChange"
            :current-page.sync="pageindex"
            :page-sizes="pagesizes"
            :page-size="pagesize"
            :layout="layout"
            :total="total"
            class="class-page">
        </el-pagination>-->

		<el-button type="primary" v-if="ishowpagination" class="submit" @click="submit">修改</el-button>
		<el-button type="danger" class="submit" @click="cancel">退出</el-button>

	</el-dialog>
</template>
<script type="text/javascript">
	import qs from 'qs'
	import BqComponent from '../../../admin/xxjbszManage/bq'
	import XwcjaddComponent from '../../xsxycjManage/add'
	import XwcjeditComponent from '../../xsxycjManage/edit'
	import InfoComponent from '../../../cost/payjl/info'
	import GlxcjComponent from './glxcj'
	export default {
		components: {
			BqComponent,
			XwcjaddComponent,
			XwcjeditComponent,
			InfoComponent,
			GlxcjComponent
		},
		props: ['params'],
		data() {
			return {
				pickerOptions0: {
					disabledDate(time) {
						return time.getTime() > Date.now() - 8.64e6
					}
				},
				// 				skxs:'',
				//				zyxs:'',
				//				bsxs:'',
				//				jqms:'',
				//				jqnote:'',
				//				skstr:'',
				//				zystr:'',
				//				bsstr:'',
				bqList: [],
				comboxlist: [],
				ishowpagination: true,
				activeName: 'first',
				form: {
					orderid: '',
					xsid1: '',
					dh: '',
					mm: '',
					tx: '',
					xb: '',
					zwm: '',
					ywm: '',
					lsid: '',
					bjid: '',
					isty: '',
					iszf: '',
					issj: '',
					isqymc: '',
					lx: '',
					csrq: '',
					zsly: '',
					fmdh: '',
					wx: '',
					jtdz: '',
					glxx: '',
					njbj: '',
					bj: '',
					xh: '',
					ktyuer: '',
					id: ''
				},
				kqdataList: [],
				zydataList: [],
				xspjdataList: [],
				kscjdataList: [],
				xwcjdataList: [],
				dxdataList: [],
				zhxxdataList: [],
				xsxxdataList: [],
				jzjldataList: [],
				tfjldataList: [],
				xskxdataList: [],

				/*分页属性设置*/
				layout: 'total, sizes, prev, pager, next, jumper', //组件布局
				pageindex1: 1, //当前分页页码
				pagesizes1: [8], //显示个数的选择器选项
				pagesize1: 8, //每页显示条目数
				total1: 0, //总条数

				/*分页属性设置*/
				layout: 'total, sizes, prev, pager, next, jumper', //组件布局
				pageindex2: 1, //当前分页页码
				pagesizes2: [8], //显示个数的选择器选项
				pagesize2: 8, //每页显示条目数
				total2: 0, //总条数

				/*分页属性设置*/
				layout: 'total, sizes, prev, pager, next, jumper', //组件布局
				pageindex3: 1, //当前分页页码
				pagesizes3: [8], //显示个数的选择器选项
				pagesize3: 8, //每页显示条目数
				total3: 0, //总条数

				/*分页属性设置*/
				layout: 'total, sizes, prev, pager, next, jumper', //组件布局
				pageindex4: 1, //当前分页页码
				pagesizes4: [2], //显示个数的选择器选项
				pagesize4: 2, //每页显示条目数
				total4: 0, //总条数

				/*分页属性设置*/
				layout: 'total, sizes, prev, pager, next, jumper', //组件布局
				pageindex5: 1, //当前分页页码
				pagesizes5: [8], //显示个数的选择器选项
				pagesize5: 8, //每页显示条目数
				total5: 0, //总条数

				/*分页属性设置*/
				layout: 'total, sizes, prev, pager, next, jumper', //组件布局
				pageindex6: 1, //当前分页页码
				pagesizes6: [8], //显示个数的选择器选项
				pagesize6: 8, //每页显示条目数
				total6: 0, //总条数

				/*分页属性设置*/
				layout: 'total, sizes, prev, pager, next, jumper', //组件布局
				pageindex7: 1, //当前分页页码
				pagesizes7: [4], //显示个数的选择器选项
				pagesize7: 12, //每页显示条目数
				total7: 0, //总条数

				/*分页属性设置*/
				layout: 'total, sizes, prev, pager, next, jumper', //组件布局
				pageindex8: 1, //当前分页页码
				pagesizes8: [8], //显示个数的选择器选项
				pagesize8: 8, //每页显示条目数
				total8: 0, //总条数

				/*分页属性设置*/
				layout: 'total, sizes, prev, pager, next, jumper', //组件布局
				pageindex9: 1, //当前分页页码
				pagesizes9: [8], //显示个数的选择器选项
				pagesize9: 8, //每页显示条目数
				total9: 0, //总条数

				/*分页属性设置*/
				layout: 'total, sizes, prev, pager, next, jumper', //组件布局
				pageindex10: 1, //当前分页页码
				pagesizes10: [8], //显示个数的选择器选项
				pagesize10: 8, //每页显示条目数
				total10: 0, //总条数
				
				/*分页属性设置*/
				layout: 'total, sizes, prev, pager, next, jumper', //组件布局
				pageindex11: 1, //当前分页页码
				pagesizes11: [8], //显示个数的选择器选项
				pagesize11: 8, //每页显示条目数
				total11: 0, //总条数
				portComponents: {

					bq: {
						type: 'bq',
						toggle: false,
						params: '',
						data: {}
					},
					xwcjadd: {
						type: 'xwcjadd',
						toggle: false,
						params: '',
						data: {}
					},
					xwcjedit: {
						type: 'xwcjedit',
						toggle: false,
						params: '',
						data: {}
					},
					info: {
						type: 'info',
						toggle: false,
						params: '',
						data: {}
					},
					glxcj: {
						type: 'glxcj',
						toggle: false,
						params: {
							xsid: '',
							xsmc: ''
						},
						data: {}
					}

				},
			}
		},
		created() {
			if(this.params.row.xsid) {
				this.form.id = this.params.row.xsid;
			} else {
				this.form.id = this.params.row.id;
			}
			this.loadinfo();
			this.kq();
			this.xwcj();
			this.ddxx();
			this.kscj();
			this.zyfs();
			this.xspj();
			this.xsxx();
			this.zhxx();
			this.jzjl();
			this.tfjl();
			this.xskx();
			this.getcomlist();
		},
		methods: {
			//手机失去焦点直接判断
			czmm() {
				this.$confirm('此操作将重置该学生登录密码, 是否继续?', '提示', {
					confirmButtonText: '确定',
					cancelButtonText: '取消',
					type: 'warning'
				}).then(() => {
					var logininfo = JSON.parse(localStorage.logininfo);
					var params2 = qs.stringify({
						xsid: this.form.id,
						yhid: logininfo.id,
						xxid: logininfo.xxid
					})
					//执行
					this.axios.post(this.$store.state.api + 'xs/czmm', params2)
						.then(res => {
							this.$message.success(res.data.msg);
							console.log(res, 999)
						}).catch(res => {})
				}).catch(() => {
					this.$message({
						type: 'info',
						message: '已取消'
					});
				});
			},
			yz() {
				if(!(/^[1][3,4,5,7,8][0-9]{9}$/.test(this.form.dh))) {
					this.$message.error('输入手机号不正确！');
				}
			},
			yz1() {
				if(!(/^[1][3,4,5,7,8][0-9]{9}$/.test(this.form.fmdh))) {
					this.$message.error('输入手机号不正确！');
				}
			},
			styletest(boj) {
				if(boj.columnIndex == 1) {
					if(this.kqdataList[boj.rowIndex].zt == '缺勤') {
						return 'color:red'
					}
				}
				return '';
			},

			delbq(bq) {
				var dd = [];
				for(let i in this.bqList) {
					if(this.bqList[i] == bq) {
						continue
					} else {
						dd.push(this.bqList[i]);
					}
				}
				this.bqList = dd;
			},
			handleClick(tab) {
				if(tab.label == "基本信息") {
					this.ishowpagination = true;
				} else {
					this.ishowpagination = false;
				}
			},
			//年级班级
			getcomlist() {
				var logininfo = JSON.parse(localStorage.logininfo);
				var params2 = qs.stringify({
					yhid: logininfo.id,
					xxid: logininfo.xxid
				})
				//执行
				this.axios.post(this.$store.state.api + 'nj/getlist', params2)
					.then(res => {
						let data = res.data.data;
						let list = data.list;
						this.comboxlist = list;
					}).catch(res => {})
			},
			//考勤
			kq() {
				//        	alert(this.form.id)
				var logininfo = JSON.parse(localStorage.logininfo);
				this.searchLoading = true;
				var params2 = qs.stringify({
					xsid: this.form.id,
					pageindex: this.pageindex1,
					pagesize: this.pagesize1,
					zt: '1'
				})
				//执行
				this.axios.post(this.$store.state.api + 'xs/xiangqing', params2)
					.then(res => {
						let data = res.data.data;
						let list = data.list;
						this.kqdataList = list;
						this.total1 = data.totalPage;
						this.searchLoading = false;
					}).catch(res => {
						this.searchLoading = false;
					})
			},
			handleSizeChange1(val) { //每页显示条数触发事件
				this.pagesize1 = val;
				this.pageindex1 = 1;
				this.kq();
			},
			handleCurrentChange1(val) { //分页触发事件
				this.kq();
			},
			//考试成绩
			kscj() {
				var logininfo = JSON.parse(localStorage.logininfo);
				this.searchLoading = true;
				var params2 = qs.stringify({
					xsid: this.form.id,
					pageindex: this.pageindex2,
					pagesize: this.pagesize2,
					zt: '2'
				})
				//执行
				this.axios.post(this.$store.state.api + 'xs/xiangqing', params2)
					.then(res => {
						//               	console.log(res,'888888')
						let data = res.data.data;
						let list = data.list;
						this.kscjdataList = list;
						for(var i in this.kscjdataList) {
							if(this.kscjdataList[i].score == "12") {
								this.kscjdataList[i].score = "A+"
							} else if(this.kscjdataList[i].score == "11") {
								this.kscjdataList[i].score = "A"
							} else if(this.kscjdataList[i].score == "10") {
								this.kscjdataList[i].score = "A-"
							} else if(this.kscjdataList[i].score == "9") {
								this.kscjdataList[i].score = "B+"
							} else if(this.kscjdataList[i].score == "8") {
								this.kscjdataList[i].score = "B"
							} else if(this.kscjdataList[i].score == "7") {
								this.kscjdataList[i].score = "B-"
							} else if(this.kscjdataList[i].score == "6") {
								this.kscjdataList[i].score = "C+"
							} else if(this.kscjdataList[i].score == "5") {
								this.kscjdataList[i].score = "C"
							} else if(this.kscjdataList[i].score == "4") {
								this.kscjdataList[i].score = "C-"
							} else if(this.kscjdataList[i].score == "3") {
								this.kscjdataList[i].score = "D+"
							} else if(this.kscjdataList[i].score == "2") {
								this.kscjdataList[i].score = "D"
							} else if(this.kscjdataList[i].score == "1") {
								this.kscjdataList[i].score = "D-"
							} else if(this.kscjdataList[i].score == "0") {
								this.kscjdataList[i].score = "未输入"
							} else if(this.kscjdataList[i].score == "-1") {
								this.kscjdataList[i].score = "未录入"
							}
						}
						this.total2 = data.totalPage;

						this.searchLoading = false;
					}).catch(res => {
						console.log(res)
						this.searchLoading = false;
					})
			},
			handleSizeChange2(val) { //每页显示条数触发事件
				this.pagesize2 = val;
				this.pageindex2 = 1;
				this.kscj();
			},
			handleCurrentChange2(val) { //分页触发事件
				this.kscj();
			},
			zyfs() {
				var logininfo = JSON.parse(localStorage.logininfo);
				this.searchLoading = true;
				var params2 = qs.stringify({
					xsid: this.form.id,
					pageindex: this.pageindex3,
					pagesize: this.pagesize3,
					zt: '3'
				})
				//执行
				this.axios.post(this.$store.state.api + 'xs/xiangqing', params2)
					.then(res => {
						let data = res.data.data;
						let list = data.list;
						this.zydataList = list;
						this.total3 = data.totalPage;
						this.searchLoading = false;
					}).catch(res => {
						console.log(res)
						this.searchLoading = false;
					})
			},
			handleSizeChange3(val) { //每页显示条数触发事件
				this.pagesize3 = val;
				this.pageindex3 = 1;
				this.zyfs();
			},
			handleCurrentChange3(val) { //分页触发事件
				this.zyfs();
			},
			xspj() {
				var logininfo = JSON.parse(localStorage.logininfo);
				this.searchLoading = true;
				var params2 = qs.stringify({
					xsid: this.form.id,
					pageindex: this.pageindex4,
					pagesize: this.pagesize4,
					zt: '4'
				})
				//执行
				this.axios.post(this.$store.state.api + 'xs/xiangqing', params2)
					.then(res => {
						let data = res.data.data;
						let list = data.list;
						for(var i in list) {
							this.xspjdataList = list;
						}
						this.total4 = data.totalPage;
						this.searchLoading = false;
					}).catch(res => {
						this.searchLoading = false;
					})
			},
			handleSizeChange4(val) { //每页显示条数触发事件
				this.pagesize4 = val;
				this.pageindex4 = 1;
				this.xspj();
			},
			handleCurrentChange4(val) { //分页触发事件
				this.xspj();
			},
			xwcj() {
				var logininfo = JSON.parse(localStorage.logininfo);
				this.searchLoading = true;
				var params2 = qs.stringify({
					xsid: this.form.id,
					//						 keyword: this.vkeyword+'', // keyword
					yhid: logininfo.id,
					xxid: logininfo.xxid,
					pageindex: this.pageindex5,
					pagesize: this.pagesize5,
				})
				//执行
				this.axios.post(this.$store.state.api + 'xsxwcj/list', params2)
					.then(res => {
						console.log(res)
						console.log(res)
						let data = res.data.data;
						let list = data.list;
						this.xwcjdataList = list;
						this.total5 = data.totalPage;
						this.searchLoading = false;
					}).catch(res => {
						console.log(res)
						this.searchLoading = false;
					})

			},
			handleSizeChange5(val) { //每页显示条数触发事件
				this.pagesize5 = val;
				this.pageindex5 = 1;
				this.xwcj();
			},
			handleCurrentChange5(val) { //分页触发事件
				this.xwcj();
			},
			ddxx() {
				var logininfo = JSON.parse(localStorage.logininfo);
				this.searchLoading = true;
				var params2 = qs.stringify({
					xsid: this.form.id,
					//						 keyword: this.vkeyword+'', // keyword
					yhid: logininfo.id,
					xxid: logininfo.xxid,
					pageindex: this.pageindex6,
					pagesize: this.pagesize6,
				})
				//执行
				this.axios.post(this.$store.state.api + 'order/list', params2)
					.then(res => {
						this.form.xsid1 = res.data.data.list[0].id;
						this.form.orderid = res.data.data.list[0].orderid;
						let data = res.data.data;
						let list = data.list;
						this.dxdataList = list;
						this.total6 = data.totalPage;

						this.searchLoading = false;
					}).catch(res => {
						console.log(res)
						this.searchLoading = false;
					})
			},
			handleSizeChange6(val) { //每页显示条数触发事件
				this.pagesize6 = val;
				this.pageindex6 = 1;
				this.ddxx();
			},
			handleCurrentChange6(val) { //分页触发事件
				this.ddxx();
			},
			jzjl() {
				var logininfo = JSON.parse(localStorage.logininfo);
				this.searchLoading = true;
				var params2 = qs.stringify({
					xsid: this.form.id,
					pageindex: this.pageindex9,
					pagesize: this.pagesize9,
					zt: '5'
				})
				//执行
				this.axios.post(this.$store.state.api + 'xs/xiangqing', params2)
					.then(res => {
						let data = res.data.data;
						let list = data.list;
						this.jzjldataList = list;
						this.total9 = data.totalPage;

						this.searchLoading = false;
					}).catch(res => {
						console.log(res)
						this.searchLoading = false;
					})
			},
			handleSizeChange9(val) { //每页显示条数触发事件
				this.pagesize9 = val;
				this.pageindex9 = 1;
				this.jzjl();
			},
			handleCurrentChange9(val) { //分页触发事件
				this.jzjl();
			},
			tfjl() {
				var logininfo = JSON.parse(localStorage.logininfo);
				this.searchLoading = true;
				var params2 = qs.stringify({
					xsid: this.form.id,
					pageindex: this.pageindex10,
					pagesize: this.pagesize10,
					zt: '6'
				})
				//执行
				this.axios.post(this.$store.state.api + 'xs/xiangqing', params2)
					.then(res => {
						console.log(res)
						let data = res.data.data;
						let list = data.list;
						this.tfjldataList = list;
						this.total10 = data.totalPage;
						this.searchLoading = false;
					}).catch(res => {
						console.log(res)
						this.searchLoading = false;
					})
			},
			handleSizeChange10(val) { //每页显示条数触发事件
				this.pagesize10 = val;
				this.pageindex10 = 1;
				this.tfjl();
			},
			handleCurrentChange10(val) { //分页触发事件
				this.tfjl();
			},
			zhxx() {
				var logininfo = JSON.parse(localStorage.logininfo);
				this.searchLoading = true;
				var params2 = qs.stringify({
					xsid: this.form.id,
					yhid: this.form.id,
					xxid: logininfo.xxid,
					pageindex: this.pageindex7,
					pagesize: this.pagesize7
				})
				this.axios.post(this.$store.state.api + 'xs/zhxx', params2)
					.then(res => {
						console.log(res)
						let data = res.data.data;
						let list = data.list;
						this.zhxxdataList = list;
						this.total7 = data.totalPage;
						this.searchLoading = false;
					}).catch(res => {
						console.log(res)
						this.searchLoading = false;
					})
			},
			handleSizeChange7(val) { //每页显示条数触发事件
				this.pagesize7 = val;
				this.pageindex7 = 1;
				this.zhxx();
			},
			handleCurrentChange7(val) { //分页触发事件
				this.zhxx();
			},
			xsxx() {
				var logininfo = JSON.parse(localStorage.logininfo);
				this.searchLoading = true;
				var params2 = qs.stringify({
					yhid: this.form.id,
					xxid: logininfo.xxid,
					pageindex: this.pageindex8,
					pagesize: this.pagesize8
				})
				//执行
				this.axios.post(this.$store.state.api + 'noticelist/list', params2)
					.then(res => {
						let data = res.data.data;
						let list = data.list;
						this.xsxxdataList = list;
						this.total8 = data.totalPage;

						this.searchLoading = false;
					}).catch(res => {
						this.searchLoading = false;
					})
			},
			handleSizeChange8(val) { //每页显示条数触发事件
				this.pagesize8 = val;
				this.pageindex8 = 1;
				this.xsxx();
			},
			handleCurrentChange8(val) { //分页触发事件
				this.xsxx();
			},
			xskx() {
				var logininfo = JSON.parse(localStorage.logininfo);
				this.searchLoading = true;
				var params2 = qs.stringify({
					xsid: this.form.id,
					pageindex: this.pageindex11,
					pagesize: this.pagesize11,
					zt: '7'
				})
				//执行
				this.axios.post(this.$store.state.api + 'xs/xiangqing', params2)
					.then(res => {
//						console.log(res,'xskx')
						let data = res.data.data;
						let list = data.list;
						this.xskxdataList = list;
						this.total11 = data.totalPage;
						this.searchLoading = false;

						this.searchLoading = false;
					}).catch(res => {
						this.searchLoading = false;
					})
			},
			handleSizeChange11(val) { //每页显示条数触发事件
				this.pagesize11 = val;
				this.pageindex11 = 1;
				this.xskx();
			},
			handleCurrentChange11(val) { //分页触发事件
				this.xskx();
			},
			loadinfo() {

				var logininfo = JSON.parse(localStorage.logininfo);
				var params2 = qs.stringify({
					xxid: logininfo.xxid,
					yhid: logininfo.id,
					id: this.form.id
				})
				//执行
				this.axios.post(this.$store.state.api + 'xs/info', params2)
					.then(res => {
						console.log(res,'kkkkkkkkkkkkkkkkkkkkkkkkkk')
						this.form = res.data.data
						try {
							if(this.form.bq){
								this.bqList = this.form.bq.split(',');
							}else{
								this.bqList = ''
							}
						} catch(e) {}
					}).catch(res => {
						this.$message.warning("服务器异常");
						this.$emit('close', {
							type: 'info',
							cancel: true
						});
					})
			},
			submit() { //检测
				this.$store.state.loading = true;
				/*if(!this.form.id) {
					this.$message.warning('请填写分类');
					this.$store.state.loading = false;
					return;
				}*/
				var time1 = this.$.getLocalTimeNo0(Date.parse(this.form.csrq));
				//装载数据
				var logininfo = JSON.parse(localStorage.logininfo);
				var params2 = qs.stringify({
					id: this.form.id,
					dh: this.form.dh,
					xb: this.form.xb,
					zwm: this.form.zwm,
					ywm: this.form.ywm,
					// 						isqy: this.form.isqy,
					csrq: time1,
					zsly: this.form.zsly,
					fmdh: this.form.fmdh,
					wx: this.form.wx,
					glxx: this.form.glxx,
					jtdz: this.form.jtdz,
					njbj: this.form.njbj,
					bq: this.bqList + '',
					yhid: logininfo.id,
					xxid: logininfo.xxid
				})
				//执行
				this.axios.post(this.$store.state.api + 'xs/update', params2)
					.then(res => {
						if(res.data.code == 1) {
							this.$emit('close', {
								type: 'info',
								cancel: false
							});
							this.$message.success(res.data.msg);
							this.$store.state.loading = false;
						} else {
							this.$message.warning(res.data.msg);
							this.$store.state.loading = false;
						}
					}).catch(res => {
						this.$message.danger("服务器异常");
						this.$store.state.loading = false;
					})
			},
			cancel() {
				this.$emit('close', {
					type: 'info',
					cancel: true
				})
			},
			handleSizeChange(val) { //每页显示条数触发事件
				this.pagesize = val;
				this.pageindex = 1;
				this.search();
			},
			handleCurrentChange(val) { //分页触发事件
				this.search();
			},
			componentsShow(type, data) { //显示组件
				console.log(type, data)
				for(let i in this.portComponents) {
					if(type == this.portComponents[i].type) {
						this.portComponents[i].toggle = true;
						this.portComponents[i].params = data;
						if(this.portComponents[i].data.type == 'single') {
							this.portComponents[i].data.index = data.row.id
						} else if(this.portComponents[i].data.type == 'multiple') {
							this.portComponents[i].data.index = this.multipleDelNum;
						} else {
							return;
						}
						return;
					}
				}
			},
			componentsHide(setting) { //关闭组件
				this.xwcj();
				this.portComponents.xwcjedit.toggle = false;
				for(let i in this.portComponents) {
					if(setting.type == this.portComponents[i].type) {
						this.portComponents[i].toggle = false;
						if(this.portComponents[i].type == 'bq') {
							if(!setting.cancel) {
								for(let b in setting.clist) {
									this.bqList.push(setting.clist[b]);
								}
							}
						} else {
							if(!setting.cancel) {
								this.xwcj();
							}
						}
						return;
					}
				}
			}
		}
	}
</script>
<style lang="less" scoped>
	.wrap {
		text-align: center;
	}
	
	.form {
		text-align: left;
		margin-top: 20px;
	}
	
	.bt {
		position: absolute;
		width: 100%;
		height: 50px;
		margin: 0 auto;
		top: 0;
		left: 0;
		background: #50BFFF;
		color: white;
		text-align: left;
		line-height: 50px;
		font-size: 17px;
		padding-left: 15px;
	}
	
	.input {
		display: inline-block;
	}
	
	.select-block {
		width: 100%;
		display: block;
	}
	
	.submit {
		width: 120px;
		margin-top: 8px;
	}
	
	.header {
		width: 100%;
		height: 30px;
		margin: 0 auto;
	}
	
	.one {
		width: 25%;
		height: 30px;
		float: left;
		text-align: center;
		line-height: 30px;
	}
	
	.left {
		width: 35%;
		height: 100%;
		float: left;
	}
	
	.right {
		width: 65%;
		height: 100%;
		float: right;
	}
	
	.el-form-item {
		margin-bottom: 5px;
	}
	
	.el-button+.el-button {
		margin-left: 1px;
	}
	
	.aa {
		margin-bottom: 15px;
		text-align: center;
	}
	
	.select-block1 {
		width: 50%;
		border: none;
		outline: none;
		border-bottom: 1px solid#CCCCCC;
		font-size: 16px;
	}
	
	.select-block2 {
		width: 80%;
		vertical-align: middle;
	}
	
	input::-webkit-outer-spin-button,
	input::-webkit-inner-spin-button {
		-webkit-appearance: none !important;
	}
	
	input[type="number"] {
		-moz-appearance: textfield;
	}
	
	.input1 {
		width: 300px;
		height: 30px;
		/*outline: none;*/
		border: 1px solid #CCCCCC;
		background: none;
		border-radius: 5px;
		// margin-left: 20%;
		text-align: center;
	}
</style>